package com.conan.spring5.collectType;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @version 加油！！！
 * @Description
 * @Author 谷藤新一GYC
 * @Date 2022/10/20 - 20:41
 */
public class Student {
    //数组类型属性
    private String[] courses;
    private List<Course> courseList;
    //list集合属性类型
    private List<String> list;
    //map集合属性类型
    private Map<String,String> map;
    //set集合类型属性
    private Set<String> set;
    public void setCourses(String[] courses) {
        this.courses = courses;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setCourseList(List<Course> courseList) {
        this.courseList = courseList;
    }

    @Override
    public String toString() {
        return "Student{" +
                "courses=" + Arrays.toString(courses) +
                ", courseList=" + courseList  +
                ", list=" + list +
                ", map=" + map +
                ", set=" + set +
                '}';
    }
}
   